<template lang="jade">
h-loader-full(url='loader',:setdata='false')
  h-data-lister(data='list')
  .box
    //查询
    m-title(icon='add',name='参与收费培训用户')
    //人员信息
    table.list
      ml-header(data='购买课程库,购买时间,真是姓名,昵称,头像,手机号,微信openid')
      tr(v-for='(n,i) in list')
        td {{n.sname}}
        
        td {{new Date(n.paytime * 1000).format('yyyy-MM-dd hh:mm:ss') }}
        td {{n.name}}
        td {{n.nick}}
        td
          <img :src="n.head" style='width:80px;'>
        td {{n.mobile}}
        td {{n.openid}}
    .command
      .page
        button(v-show='page>1', @click="pagego('last')") 上一页
        button {{page}}
        button(@click="pagego('next')") 下一页
</template>
----------------------------------------------------------------------------------------
<script>
import { MessageBox } from 'mint-ui'
export default {
	data () {
		return {
			loader:{
        list:'get/culpayuserlistpay/list'
      },
      list:[],
      page:1,
		}
	},
  mounted () {
  },
	methods: {
		loadAfter(data){
      this.list=data.list
		},
    // 分页
    pagego (type) {
      this.page = type == 'last' ? this.page - 1 : this.page + 1
      this.$ajax.get('get/culpayuserlistpay/list'+ '?page=' + this.page, (res) => {
        this.list = res.data
      }, (res) => {
        this.error(res.message)
      })
    },
	}
}
</script>
----------------------------------------------------------------------------------------
<style lang="less" scoped>
@import "../../../plugin/style/mixin";
.page{ float:right; }
  .page a{background: #4db3ff; color: #fff; padding:3px 10px; border-radius:4px; cursor:pointer;}
  .page b{margin:0 10px;}
</style>